package windbell.domain.risk.proxy;

import com.uniquesoft.gwt.shared.GWTNamedEntity;
import edu.fudan.langlab.domain.document.proxy.IDocumentContainerProxy;
import edu.fudan.mylang.pf.ProxyTarget;
import windbell.domain.risk.proxy.RiskCheckItemAction;

@ProxyTarget("windbell.domain.risk.RiskCheckItem")
public class RiskCheckItemProxy extends GWTNamedEntity implements IDocumentContainerProxy {
  public RiskCheckItemProxy() {
    this.setClazzName("windbell.domain.risk.RiskCheckItem");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final RiskCheckItemAction action) {
    return RiskCheckItemManager.isActionValid(action,status);
  }
}
